<template>
	<div class="tabs">
		<button :class="['tab', value === 'all' && 'active']" @click="$emit('change','all')">All</button>
		<button :class="['tab', value === 'past' && 'active']" @click="$emit('change','past')">Past</button>
		<button :class="['tab', value === 'upcoming' && 'active']" @click="$emit('change','upcoming')">Upcoming</button>
	</div>
</template>

<script>
export default { name: 'FilterTabs', props: { value: { type: String, default: 'all' } } }
</script>

<style scoped>
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 4px 0; }
.tab { padding: 8px 14px; border: 1px solid #eadcc7; border-radius: 18px; background: #f7f2ea; color: #5f503d; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,0.02); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.tab:hover { background: #efe7da; border-color: #e2cfb1; }
.active { background: #2f2212; color: #fff; border-color: #2f2212; }
.active:hover { background: #261b0e; }
</style>